﻿<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="uc_User_Giao_Vien.ascx.cs"
    Inherits="TDT_Project.Controller.uc_User_Giao_Vien" %>
<%@ Register TagPrefix="telerik" Namespace="Telerik.Web.UI" Assembly="Telerik.Web.UI" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
    <title></title>
    <link href="../css/Telerik.css" rel="stylesheet" type="text/css" />
    <%--<link rel="stylesheet" type="text/css" href="../css/style.css">--%>
</head>
<style type="text/css">
    #TextArea1
    {
        width: 264px;
        height: 78px;
    }
    .button
    {
        background-color: #C3D9FF;
        border-color: #C3D9FF;
    }
    .style1
    {
        width: 900px;
    }
    .style2
    {
        width: 153px;
    }
    
    .style6
    {
        height: 19px;
    }
    .GridStyle
    {
        margin-top: 0px;
    }
</style>
<fieldset style="background-color: #FFFBE9; height: 327px; width: 500px;">
    <table bgcolor="#FFFBE9" cellpadding="0" cellspacing="0" border="0" class="style1">
        <tr>
            <td class="style6" colspan="5" align="center">
                <font color="blue">THÔNG TIN USER ĐĂNG NHẬP</font>
            </td>
        </tr>
        <tr style="height: 10px;">
            <td>
            </td>
            <td align="left" colspan="2">
                <asp:Label ID="lbMessage" CssClass="SuccessMessage" runat="server"></asp:Label>
            </td>
        </tr>
        <tr>
            <td class="style2">
                &nbsp;&nbsp; Họ và tên giảng viên:
            </td>
            <td>
                <asp:DropDownList ID="cboGIANGVIEN" runat="server" Height="25px" Width="475px">
                </asp:DropDownList>
            </td>
        </tr>
        <tr>
            <td class="style2">
                &nbsp;&nbsp; Tên đăng nhập :
            </td>
            <td>
                <asp:TextBox ID="txtUSER" runat="server" Width="205px" Height="20px"></asp:TextBox>
            </td>
        </tr>
        <tr>
            <td>
                &nbsp;&nbsp;&nbsp; Mật khẩu :
            </td>
            <td>
                <asp:TextBox ID="txtPASS" runat="server" Width="205px" Height="20px" TextMode="Password"></asp:TextBox>
            </td>
        </tr>
        <tr>
            <td>
                &nbsp;&nbsp;&nbsp; Xác nhận mật khẩu :
            </td>
            <td>
                <asp:TextBox ID="txtXACNHAN" runat="server" Width="205px" Height="20px" TextMode="Password"></asp:TextBox>
            </td>
        </tr>
        <tr>
            <td>
                &nbsp;&nbsp;&nbsp; Cho phép login :
            </td>
            <td>
                <asp:CheckBox ID="chkIS_LOGIN" runat="server" />
            </td>
        </tr>
        <tr>
            <td>
            </td>
            <td>
                <telerik:RadButton runat="server" ValidationGroup="p" ID="btnThem_MOi" CssClass="RadButton"
                    ButtonType="ToggleButton" HoveredCssClass="RadButtonHover" Text="Thêm mới" Skin="Telerik"
                    Width="105px" Height="30px" OnClick="btnThem_MOi_Click">
                </telerik:RadButton>
                <telerik:RadButton runat="server" ValidationGroup="p" ID="btnGhi" CssClass="RadButton"
                    ButtonType="ToggleButton" HoveredCssClass="RadButtonHover" Text="Ghi" Skin="Telerik"
                    Width="105px" Height="30px" OnClick="btnGhi_Click">
                </telerik:RadButton>
            </td>
        </tr>
        <tr>
            <td colspan="3">
                <asp:DataGrid ID="gvQC" Width="100%" runat="server" AutoGenerateColumns="False" AllowPaging="True"
                    PageSize="10" HorizontalAlign="Center" CssClass="GridStyle" OnItemDataBound="gvQC_ItemDataBound"
                    OnPageIndexChanged="gvQC_PageIndexChanged">
                    <HeaderStyle CssClass="GridHeader" />
                    <AlternatingItemStyle CssClass="GridAlternateRowStyle"></AlternatingItemStyle>
                    <SelectedItemStyle CssClass="GridSelected" />
                    <PagerStyle CssClass="GridPager" />
                    <Columns>
                        <asp:TemplateColumn HeaderText="STT">
                            <HeaderStyle Font-Bold="True" HorizontalAlign="Center" Height="20px"></HeaderStyle>
                            <ItemStyle HorizontalAlign="Center" Height="20px" Width="30px"></ItemStyle>
                            <ItemTemplate>
                                <%=i++ %>
                                &nbsp;
                            </ItemTemplate>
                        </asp:TemplateColumn>
                        <asp:TemplateColumn HeaderText="Họ tên giáo viên">
                            <HeaderStyle Font-Bold="True" HorizontalAlign="Center"></HeaderStyle>
                            <ItemStyle HorizontalAlign="Justify" Width="200px"></ItemStyle>
                            <ItemTemplate>
                                &nbsp;<%# DataBinder.Eval(Container.DataItem, "TenGiaoVien")%>
                            </ItemTemplate>
                        </asp:TemplateColumn>
                        <asp:TemplateColumn HeaderText="Tên đăng nhập">
                            <HeaderStyle Font-Bold="True" HorizontalAlign="Center"></HeaderStyle>
                            <ItemStyle HorizontalAlign="Justify" Width="150px"></ItemStyle>
                            <ItemTemplate>
                                &nbsp;<%# DataBinder.Eval(Container.DataItem, "Username")%>
                            </ItemTemplate>
                        </asp:TemplateColumn>
                        <asp:TemplateColumn HeaderText="Được phép login">
                            <HeaderStyle Font-Bold="True" HorizontalAlign="Center"></HeaderStyle>
                            <ItemStyle HorizontalAlign="Justify" Width="50px"></ItemStyle>
                            <ItemTemplate>
                                &nbsp;<%# DataBinder.Eval(Container.DataItem, "BiVoHieu")%>
                            </ItemTemplate>
                        </asp:TemplateColumn>
                        <asp:TemplateColumn HeaderText="Sửa">
                            <HeaderStyle Width="30" HorizontalAlign="Center"></HeaderStyle>
                            <ItemStyle HorizontalAlign="Center"></ItemStyle>
                            <ItemTemplate>
                                <a href='?TN=edit&ID=<%# DataBinder.Eval(Container.DataItem, "IDLogin")%>'>
                                    <img alt="Sửa" title="Sửa" src="../images/edit.gif" border="0" /></a>
                            </ItemTemplate>
                        </asp:TemplateColumn>
                        <asp:TemplateColumn HeaderText="Xóa">
                            <HeaderStyle Width="30" HorizontalAlign="Center"></HeaderStyle>
                            <ItemStyle HorizontalAlign="Center"></ItemStyle>
                            <ItemTemplate>
                                <a href='?TN=delete&ID=<%# DataBinder.Eval(Container.DataItem, "IDLogin")%>' onclick="javascript:return confirm('Bạn có chắc muốn xóa quảng cáo này không?');">
                                    <img alt="Xóa" title="Xóa" src="../images/Drop.png" border="0" /></a>
                            </ItemTemplate>
                        </asp:TemplateColumn>
                    </Columns>
                    <PagerStyle HorizontalAlign="Right" BackColor="#F7F7EC" Mode="NumericPages"></PagerStyle>
                </asp:DataGrid>
                <input type="hidden" runat="server" id="img_save" />
            </td>
        </tr>
    </table>
</fieldset>
